package com.yxplearn.mybatisplus.dao.core.handler;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class IntHandler extends DefaultHandler {

    @Override
    public Object get(ResultSet rs, String columnName) throws SQLException {
        return rs.getObject(columnName);
    }

    @Override
    public void set(PreparedStatement ps, int index, Object value) throws SQLException {
        ps.setInt(index, (int) value);
    }
}
